<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
<base href="<%=basePath%>">
<title>客户管理</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px}
.STYLE3 {font-size: 12px; font-weight: bold; }
.STYLE4 {
	color: #03515d;
	font-size: 15px;
}
.STYLE17 {color: #333333; font-size: 18px; }
.STYLE19 {color: #000000; font-size: 18px; font-weight: bold; }
-->
</style>
<!-- 
<script>
var  highlightcolor='#c1ebff';
//此处clickcolor只能用win系统颜色代码才能成功,如果用#xxxxxx的代码就不行,还没搞清楚为什么:(
var  clickcolor='#51b2f6';
function  changeto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=highlightcolor&&source.id!="nc"&&cs[1].style.backgroundColor!=clickcolor)
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor=highlightcolor;
}
}

function  changeback(){
if  (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="nc")
return
if  (event.toElement!=source&&cs[1].style.backgroundColor!=clickcolor)
//source.style.backgroundColor=originalcolor
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor="";
}
}

function  clickto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=clickcolor&&source.id!="nc")
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor=clickcolor;
}
else
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor="";
}
}
</script>
-->
<% request.setCharacterEncoding("utf-8");%>
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" background="images/tab_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30"><img src="images/tab_03.gif" width="12" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="46%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center"><img src="images/tb.gif" width="16" height="16" /></div></td>
                <td width="95%" class="STYLE1"><span class="STYLE3">你当前的位置</span>：[客户中心]-[更新客户信息]</td>
              </tr>
            </table></td>
            <td width="54%"><table border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
                <td width="60"><table width="87%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center">

                    </div></td>

                  </tr>
                </table></td>
                <td width="60"><table width="90%" border="0" cellpadding="0" cellspacing="0">

                </table></td>
                <td width="92"><table width="90%" border="0" cellpadding="0" cellspacing="0">

                </table></td>
                <td width="20"><table width="88%" border="0" cellpadding="0" cellspacing="0">
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="16"><img src="images/tab_07.gif" width="16" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table width="55%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6" onmouseover="changeto()"  onmouseout="changeback()">
          <form action="edit_action" method="post">
          
           <tr>
            <td width="28%" height="40" align="center" valign="middle"  bgcolor="#FFFFFF"><span class="STYLE19">*客户编号</span></td>
            <td colspan="2" align="left"  bgcolor="#FFFFFF"><span class="STYLE17">
              <input type="text" name="cid" style="height:30px; width:99%; border:solid 1px #DDD; background-color:#EEE; color:#FF6633; text-align:left; line-height:30px;" readonly="readonly" value="${cid}" /></span></td>
          </tr>
          <tr>
            <td width="28%" height="40" align="center" valign="middle"  bgcolor="#FFFFFF"><span class="STYLE19">*客户名称</span></td>
            <td colspan="2" align="center"  bgcolor="#FFFFFF"><span class="STYLE17"><input type="text" name="customer.name" style="height:30px; width:99%; border:solid 1px #DDD; background-color:#EEE; color:#FF6633; text-align:left; line-height:30px;" readonly="readonly" value="${customer.name}" /></span></td>
          </tr>
          <tr>
            <td width="28%" height="40" align="center" valign="middle"  bgcolor="#FFFFFF"><span class="STYLE19">客户类型</span></td>
            <td colspan="2" align="center"  bgcolor="#FFFFFF">
              <span class="STYLE17">
              <select  name="customertype.id" style="height:30px; width:99%; border:solid 1px #DDD; background-color:#FFF; color:#FF6633; text-align:left; line-height:30px;">
              <option value="1">潜在客户</option>
              <option value="2">正式客户</option>
              </select>
			</span> </td>
          </tr>
          <tr>
            <td width="28%" height="40" align="center" valign="middle"  bgcolor="#FFFFFF"><span class="STYLE19">*发展时间</span></td>
            <td colspan="2" align="center"  bgcolor="#FFFFFF"><span class="STYLE17"><input type="text" name="customer.createdate" style="height:30px; width:99%; border:solid 1px #DDD; background-color:#EEE; color:#FF6633; text-align:left; line-height:30px;" readonly="readonly" value="${customer.createdate}" /></span></td>
          </tr>
           <tr>
            <td width="28%" height="40" align="center" valign="middle"  bgcolor="#FFFFFF"><span class="STYLE19">*发展员工</span></td>
            <td colspan="2" align="center"  bgcolor="#FFFFFF"><span class="STYLE17"><input type="text" name="employee.id" style="height:30px; width:99%; border:solid 1px #DDD; background-color:#EEE; color:#FF6633; text-align:left; line-height:30px;" readonly="readonly" value="${customer.employee.id}" /></span></td>
          </tr>
           <tr>
            <td width="28%" height="40" align="center" valign="middle"  bgcolor="#FFFFFF"><span class="STYLE19">联系人</span></td>
            <td colspan="2" align="center"  bgcolor="#FFFFFF"><span class="STYLE17"><input type="text" name="customer.person" style="height:30px; width:99%; border:solid 1px #DDD; background-color:#FFF; color:#FF6633; text-align:left; line-height:30px;"  value="${customer.person}" /></span></td>
          </tr>
          <tr>
            <td width="28%" height="40" align="center" valign="middle"  bgcolor="#FFFFFF"><span class="STYLE19">联系电话</span></td>
            <td colspan="2" align="center"  bgcolor="#FFFFFF"><span class="STYLE17"><input type="text"  name="customer.tel" style="height:30px; width:99%; border:solid 1px #DDD; background-color:#FFF; color:#FF6633; text-align:left; line-height:30px;" value="${customer.tel}" /></span></td>
          </tr>
          <tr>
            <td width="28%" height="40" align="center" valign="middle"  bgcolor="#FFFFFF"><span class="STYLE19">QQ</span></td>
            <td colspan="2" align="center"  bgcolor="#FFFFFF"><span class="STYLE17"><input type="text" name="customer.qq" style="height:30px; width:99%; border:solid 1px #DDD; background-color:#FFF; color:#FF6633; text-align:left; line-height:30px;"  value="${customer.qq}" /></span></td>
          </tr>
           <tr>
            <td width="28%" height="40" align="center" valign="middle"  bgcolor="#FFFFFF"><span class="STYLE19">E-mail</span></td>
            <td colspan="2" align="center"  bgcolor="#FFFFFF"><span class="STYLE17"><input type="text" name="customer.email" style="height:30px; width:99%; border:solid 1px #DDD; background-color:#FFF; color:#FF6633; text-align:left; line-height:30px;" value="${customer.email}" /></span></td>
          </tr>
          <tr>
            <td width="28%" height="40" align="center" valign="middle"  bgcolor="#FFFFFF"><span class="STYLE19">通讯地址</span></td>
            <td colspan="2" align="center"  bgcolor="#FFFFFF">
              <span class="STYLE17">
				<input type="text" name="customer.address" style="height:30px; width:99%; border:solid 1px #DDD; background-color:#FFF; color:#FF6633; text-align:left; line-height:30px;" value="${customer.address}" /></span></td>
          </tr>
           <tr>
            <td height="56" colspan="2" align="center" valign="middle"  bgcolor="#FFFFFF"><input style=" height:30px; width:60px;" type="submit" value="提交" /></td>
            <td width="51%" align="center" valign="middle"  bgcolor="#FFFFFF"><input style=" height:30px; width:60px;" type="reset" value="取消" /></td>
            </tr>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
      
      </form>
      
    </table></td>
  </tr>
  <tr>
    <td height="35" background="images/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="35"><img src="images/tab_18.gif" width="12" height="35" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="STYLE4">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
        <td width="16"><img src="images/tab_20.gif" width="16" height="35" /></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
